	Ext.onReady(function(){
		var md = Ext.create('Ext.form.DateField',{
			renderTo: 'start',
			width:120,
			format:'Y-m-d',
			emptyText:"开始时间",
			name: 'startDate',
            id: 'startDate',
            editable:false,
			listeners: {
  			'select': function(f) {
 			var newDate = new Date(new Date(f.getValue()).valueOf() + 1 * 24 * 60 * 60 * 1000);
  			Ext.getCmp("endDate").setMinValue(newDate);
  				}
  			}            
		});
		var sd = Ext.create('Ext.form.DateField',{
			renderTo: 'end',
			width:120,
			format:'Y-m-d',
			emptyText:"结束时间",
            name: 'endDate',
            id: 'endDate',
            editable:false,
  			listeners: {
			'select': function(f) {
			var newDate = new Date(new Date(f.getValue()).valueOf() - 1 * 24 * 60 * 60 * 1000);
			Ext.getCmp("startDate").setMaxValue(newDate);
			  }
			}
		})
		});